<template>
  <div class="container">
    <!-- <div class="box">
      <header class="header">
        头部
      </header>
      <div class="content">内容</div>
    </div> -->
    <router-view></router-view>

    <router-view name="footer"></router-view>
    <!-- <footer class="footer">
      <ul>
        <router-link to="/">
          <li>
            <span><van-icon name="wap-home-o" /></span>
            <p>首页</p>
          </li>
        </router-link>
        <router-link to="/kind">
          <li>
            <span><van-icon name="wap-home-o" /></span>
            <p>分类</p>
          </li>
        </router-link>
        <router-link to="/cart">
          <li>
            <span><van-icon name="wap-home-o" /></span>
            <p>购物车</p>
          </li>
        </router-link>
        <router-link to="/user">
          <li>
            <span><van-icon name="wap-home-o" /></span>
            <p>我的</p>
          </li>
        </router-link>
      </ul>

    </footer> -->
  </div>
</template>
<style lang="scss">
* {
  margin: 0;
  padding: 0;
  list-style: none;
}

html,
body,
#app,
.container {
  width: 100%;
  height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  background: #efefef;

  .box {
    flex: 1;
    overflow: auto;

    display: flex;
    flex-direction: column;

    .header {
      height: 3.125rem;
    }

    .content {
      flex: 1;
      overflow: auto;
    }
  }

  .footer {
    height: 50px;
    background: #8e8e8e;

    ul {
      width: 100%;
      height: 100%;
      display: flex;
      /* 子元素均匀分布 */
      justify-content: space-evenly;
      align-items: center;

      a {
        text-align: center;
        color: black;

        &.router-link-active {
          color: red
        }
      }

    }
  }
}
</style>